package com.migu.spms.dao.inf;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.migu.spms.dao.entity.RequireUserCriteria;
import com.migu.spms.dao.entity.RequireUserDO;

@Repository(value = "IRequireUserDO")
public interface IRequireUserDO {
    int deleteByPrimaryKey(Long id);

    int insert(RequireUserCriteria record);

    int insertSelective(RequireUserCriteria record);

    RequireUserDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RequireUserCriteria record);

    int updateByPrimaryKey(RequireUserCriteria record);

    void batchInsert(List<RequireUserCriteria> requireUserCriteria);

    List<RequireUserDO> selectByCriteria(RequireUserCriteria requireUserCriteria);

    void batchDelete(List<String> ids);
    void batchDeleteByRoleId(@Param("ids")List<String> ids,@Param("roleId")Long roleId);
    
    void deleteByCriteria(RequireUserCriteria requireUserCriteria);
}